<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>add</title>
	<hdjs/>
</head>
<body>
<div class="wrap">
	<div class="menu_list">
		<ul>
		    <li><a href="{|U:'index'}"  class="action">问题列表</a></li>
		    <li><a href="{|U:'add'}">发布问题</a></li>
		</ul>
	</div>
<form method="post">
	<table class="table1 hd-form">

		<tr>
			<td class="w100">问题分类</td>
			<td>
				<select name="cid" class="w150" style="text-align:center;">
					<option value="0">==选择问题类别==</option>
					<list from='$cat' name='$c'>
					<option value="{$c.cid}">{$c.catname}</option>
					</list>
				</select>
			</td>
		</tr>
		<tr>
			<td>问题</td>
			<td><input type="text" name="qname" class="w250"></td>
		</tr>
		<tr>
			<td>缩略图</td>
			<td>
			<upload size='2' type='jpg,jpeg,png,gif' limit='2' name='thumb'  water="0"/>
			</td>
		</tr>
		<tr>
			<td>发布时间</td>
			<td><input type="text" readonly="readonly" id="qtime" name="qtime"
 value="{|date:'Y/m/d H:i:s'}"
class="w150"/></td>
			<script>
	$('#qtime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
 </script>
		</tr>
		<tr>
			<td>浏览次数</td>
			<td><input type="text" name="qclick"></td>
		</tr>
	</table>
	<input type="submit" value="发布" class="hd-success">
	<js file="__CONTROLLER_VIEW__/Js/js.js"/>
</form>
</div>
</body>
</html>